package com.github.shiro.config;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: shiro
 * @description:
 * @author: ruiyanglee
 * @create: 2020-07-23 17:42
 **/
public class JWTToken implements AuthenticationToken {
    private static final long serialVersionUID = -8451637096112402805L;
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
